﻿/* Story.css — "Our Story" page
   Inherits design tokens from MasterPages/Master.css (:root) */

@keyframes st-breathe {
    0%, 100% {
        opacity: 0.18;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.36;
        transform: translateX(-50%) scale(1.10);
    }
}

/* ══════════════════ HERO ══════════════════ */
.st-hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 820px;
    height: 820px;
    max-width: 120vw;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(222,155,24,0.26) 0%, rgba(125,27,211,0.34) 36%, transparent 68%);
    animation: st-breathe 8s ease-in-out infinite;
}

.st-hero {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    padding: 64px clamp(20px,5vw,40px) 36px;
}

.st-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--secondary);
    padding: 7px 16px;
    border: 1px solid rgba(222,155,24,0.30);
    border-radius: 999px;
    background: rgba(222,155,24,0.06);
    margin-bottom: 18px;
}

.st-hero-year {
    font-family: 'DejaVu Sans', sans-serif;
    font-size: clamp(72px,16vw,176px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 4px;
    background: linear-gradient(180deg, #fff 0%, rgba(187,128,255,0.85) 45%, rgba(222,155,24,0.55) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    text-shadow: 0 0 60px rgba(125,27,211,0.25);
    user-select: none;
}

.st-hero-title {
    font-size: clamp(26px,4.4vw,46px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 22px;
}

.st-hero-sub {
    font-size: clamp(15px,1.7vw,18px);
    line-height: 1.8;
    color: rgba(236,230,255,0.62);
    max-width: 640px;
    margin: 0 auto 36px;
}

/* founding record card */
.st-record {
    max-width: 440px;
    margin: 0 auto;
    text-align: left;
    background: rgba(18,10,36,0.55);
    border: 1px solid rgba(125,27,211,0.28);
    border-radius: 16px;
    padding: 6px 22px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.st-record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(125,27,211,0.14);
}

    .st-record-row:last-child {
        border-bottom: none;
    }

.st-record-k {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.st-record-v {
    font-family: 'DejaVu Sans', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.st-record-v--live {
    color: var(--secondary);
    font-weight: 600;
}

.st-redact {
    font-family: monospace;
    color: rgba(236,230,255,0.30);
    background: rgba(125,27,211,0.18);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* ══════════════════ SECTION SHELL ══════════════════ */
.st-section {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 54px clamp(20px,5vw,60px);
}

.st-section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 14px;
}

.st-section-title {
    font-size: clamp(24px,3.4vw,38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.4px;
    color: #fff;
}

.st-cards-head {
    text-align: center;
    margin-bottom: 40px;
}

/* reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    [data-reveal].st-in {
        opacity: 1;
        transform: none;
    }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .st-hero-glow, .st-era-badge--now {
        animation: none !important;
    }
}

/* ══════════════════ FOUNDING ══════════════════ */
.st-founding {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.st-founding-lead {
    font-size: clamp(22px,3vw,32px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    margin-bottom: 26px;
}

.st-founding-p {
    font-size: clamp(15px,1.8vw,18px);
    line-height: 1.85;
    color: rgba(236,230,255,0.64);
    margin-bottom: 18px;
    text-align: left;
}

    .st-founding-p:last-child {
        margin-bottom: 0;
    }

    .st-founding-p em {
        font-style: italic;
        color: var(--secondary);
    }

/* ══════════════════ TIMELINE (signature) ══════════════════ */
.st-timeline {
    list-style: none;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.st-era {
    position: relative;
    padding-left: 92px;
    padding-bottom: 30px;
}

    .st-era:last-child {
        padding-bottom: 0;
    }

/* vertical spine: purple at top → gold at bottom (passage of time) */
.st-era-spine {
    position: absolute;
    left: 27px;
    top: 8px;
    bottom: -8px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(125,27,211,0.55), rgba(125,27,211,0.30));
}

.st-era:last-child .st-era-spine {
    background: linear-gradient(to bottom, rgba(222,155,24,0.5), transparent);
    bottom: 30%;
}

.st-era-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DejaVu Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fff;
    background: rgba(18,10,36,0.9);
    border: 2px solid rgba(125,27,211,0.55);
    box-shadow: 0 0 18px rgba(125,27,211,0.3);
    z-index: 2;
}

.st-era-badge--mid {
    border-color: rgba(160,90,220,0.6);
}

.st-era-badge--now {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 0 0 rgba(222,155,24,0.5);
    animation: st-pulse 2.6s ease-out infinite;
}

@keyframes st-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(222,155,24,0.5);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(222,155,24,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(222,155,24,0);
    }
}

.st-era-card {
    background: rgba(18,10,36,0.52);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(125,27,211,0.26);
    border-radius: 18px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}

    .st-era-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 6%;
        right: 6%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(125,27,211,0.5) 50%, transparent);
    }

.st-era-card--now {
    border-color: rgba(222,155,24,0.4);
    box-shadow: 0 8px 40px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(222,155,24,0.06);
}

    .st-era-card--now::before {
        background: linear-gradient(90deg, transparent, rgba(222,155,24,0.5) 50%, transparent);
    }

.st-era-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.st-era-body {
    font-size: 14.5px;
    line-height: 1.8;
    color: rgba(236,230,255,0.58);
}

/* ══════════════════ PRINCIPLES ══════════════════ */
.st-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.st-card {
    background: rgba(18,10,36,0.52);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid rgba(125,27,211,0.28);
    border-radius: 20px;
    padding: 30px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}

    .st-card:hover {
        transform: translateY(-5px);
        border-color: rgba(125,27,211,0.52);
        box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    }

.st-card-num {
    font-family: 'DejaVu Sans', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: rgba(187,128,255,0.5);
    display: block;
    margin-bottom: 14px;
    line-height: 1;
}

.st-card--gold .st-card-num {
    color: rgba(240,190,90,0.6);
}

.st-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 11px;
}

.st-card-body {
    font-size: 14.5px;
    line-height: 1.75;
    color: rgba(236,230,255,0.56);
}

.st-card--gold {
    border-color: rgba(222,155,24,0.26);
}

    .st-card--gold:hover {
        border-color: rgba(222,155,24,0.45);
    }

/* ══════════════════ TRUSTED BY ══════════════════ */
.st-trust {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.st-trust-eyebrow {
    margin-bottom: 14px;
}

.st-trust-title {
    margin-bottom: 34px;
}

.st-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
}

.st-logo {
    font-family: 'DejaVu Sans', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    color: rgba(236,230,255,0.40);
    background: rgba(18,10,36,0.55);
    border: 1px solid rgba(125,27,211,0.22);
    border-radius: 12px;
    padding: 14px 22px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.st-trust-note {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(236,230,255,0.58);
    max-width: 600px;
    margin: 0 auto;
}

/* ══════════════════ STATS ══════════════════ */
.st-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    background: rgba(18,10,36,0.40);
    border: 1px solid rgba(125,27,211,0.20);
    border-radius: 22px;
    padding: 40px 24px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.st-stat {
    text-align: center;
    border-right: 1px solid rgba(125,27,211,0.14);
}

    .st-stat:last-child {
        border-right: none;
    }

.st-stat-num {
    display: block;
    font-family: 'DejaVu Sans', sans-serif;
    font-size: clamp(30px,4.4vw,48px);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 0 24px rgba(125,27,211,0.4);
}

.st-stat-num--gold {
    color: var(--secondary);
    text-shadow: 0 0 24px rgba(222,155,24,0.4);
}

.st-stat-label {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    padding: 0 8px;
    display: block;
}

/* ══════════════════ INDISPENSABILITY ══════════════════ */
.st-indis {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: rgba(18,10,36,0.45);
    border: 1px solid rgba(125,27,211,0.26);
    border-radius: 24px;
    padding: 50px clamp(26px,5vw,52px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

    .st-indis::before {
        content: '';
        position: absolute;
        top: 0;
        left: 20%;
        right: 20%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(222,155,24,0.6), transparent);
    }

.st-indis-title {
    font-size: clamp(24px,3.4vw,36px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.4px;
}

.st-indis-body {
    font-size: 15.5px;
    line-height: 1.85;
    color: rgba(236,230,255,0.62);
    margin-bottom: 16px;
    text-align: left;
}

    .st-indis-body:last-child {
        margin-bottom: 0;
    }

/* ══════════════════ CLOSING ══════════════════ */
.st-closing-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.st-closing {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.st-closing-title {
    font-size: clamp(24px,3.4vw,36px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.4px;
}

.st-closing-sub {
    font-size: 15.5px;
    line-height: 1.8;
    color: rgba(236,230,255,0.60);
    margin-bottom: 30px;
}

.st-cta {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    padding: 13px 32px;
    border-radius: 999px;
    transition: filter 0.18s, transform 0.15s, box-shadow 0.18s;
}

    .st-cta:hover {
        filter: brightness(1.14);
        transform: translateY(-1px);
        box-shadow: 0 8px 28px var(--primary-glow);
    }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 860px) {
    .st-grid {
        grid-template-columns: 1fr;
    }

    .st-stats {
        grid-template-columns: 1fr 1fr;
        gap: 28px 18px;
    }

    .st-stat:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 560px) {
    .st-stats {
        grid-template-columns: 1fr;
    }

    .st-stat {
        border-right: none;
        border-bottom: 1px solid rgba(125,27,211,0.14);
        padding-bottom: 24px;
    }

        .st-stat:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

    .st-era {
        padding-left: 64px;
    }

    .st-era-badge {
        width: 46px;
        height: 46px;
        font-size: 11px;
    }

    .st-era-spine {
        left: 22px;
    }
}
